package pl.lodz.p.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

import org.w3c.dom.events.Event;

@Embeddable
public class Address {
	
	@Column
	private String street;

	@Column
	private int streetNumber;
	
	@Column(nullable=true)
	private int flatNumber;
	
	@Column
	private String postalCode;

	@Column
	private String postalTown;
	
	@Column
	private String addressType;
	
	public Address() {
		super();
		addressType = "";
	}
	
	public Address(Patient patient) {
		super();
		addressType = "";
	}
	
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public int getStreetNumber() {
		return streetNumber;
	}
	public void setStreetNumber(int streetNumber) {
		this.streetNumber = streetNumber;
	}
	public int getFlatNumber() {
		return flatNumber;
	}
	public void setFlatNumber(int flatNumber) {
		this.flatNumber = flatNumber;
	}
	public String getPostalCode() {
		return postalCode;
	}
	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}
	public String getPostalTown() {
		return postalTown;
	}
	public void setPostalTown(String postalTown) {
		this.postalTown = postalTown;
	}
	public String getAddressType() {
		return addressType;
	}
	public void setAddressType(String addressType) {
		this.addressType = addressType;
	}
}
